@import '~/assets/style/vars.less';
@import '~/assets/style/mixin.less';

.list {
  &-item {
    display: flex;
    padding: 30px;
    border-bottom: 1px solid #EEEEEE;
    &:last-child {
      border-bottom-width: 0;
    }
    &-side {
      margin-right: 18px;
      width: 40px;
    }
    &-main {
      flex: 1;
      width: 0;
    }
    &-head {
      .text-ellipsis(2);
      margin-bottom: 15px;
      font-weight: 500;
      font-size: 18px;
      line-height: 25px;

      a {
        .anim-color();
        color: @color-default;

        &:visited {
          color: @color-concrete;
        }
        &:hover {
          color: @color-important;
        }
        &:active {
          color: @color-important;
        }
      }
    }
    &-body {
      display: flex;
      padding-bottom: 22px;
    }
    &-thumb {
      margin-right: 11px;
      width: 182px;
      height: 102px;
      overflow: hidden;
      border-radius: 3px;
      img {
        display: block;
        width: 100%;
        height: 100%;
      }
    }
    &-content {
      flex: 1;
      width: 0;
    }
    &-intro {
      margin-bottom: 7px;
      overflow: hidden;

      /deep/.tags {
        float: left;
        margin-right: 48px;
      }
      /deep/.ant-tag {
        margin-bottom: 7px;
      }
    }
    &-link {
      float: left;
      margin-right: 22px;
      font-size: 12px;
    }
    &-similar {
      float: left;
      &, /deep/.icon-star {
        font-size: 12px;
        color: @color-default;
      }

      &:hover {
        &, /deep/.icon-star {
          color: #7B7B7B;
        }
      }
    }
    &-author {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      font-size: 12px;

      /deep/.text-concrete {
        margin: 0 4px;
      }
    }
    &-summary {
      .text-ellipsis(2);
      // font-size: 14px;
      line-height: 24px;
      color: @color-concrete;
    }
    &-foot {
      display: flex;
      margin-bottom: -3px;
      // font-size: 14px;
      line-height: 20px;
    }
    &-action {
      margin-right: 22px;
      &:last-child {
        margin-right: 0;
      }
      /deep/.icon {
        .anim-color();
        font-size: 14px;
      }
      /deep/.link-secondary {
        &:hover {
          color: @color-secondary;
          .icon {
            color: @color-default;
          }
        }
      }
    }

    .score-editor {
      position: relative;
      margin: 30px -6px 0;
    }
  }
}
